package com.hellogood.yaohuo.shared.services;

import java.util.List;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.hellogood.yaohuo.shared.entity.PsForm;

@RemoteServiceRelativePath("RemoteService")
public interface PeisongService extends RemoteService{
	public static class Util {
		private static PeisongServiceAsync instance;

		public static PeisongServiceAsync getInstance() {
			if (instance == null) {
				instance = GWT.create(PeisongService.class);
			}
			return instance;
		}
	}

	public List<PsForm> searchPeisongFormByOrgCodeAndDate(String orgCode, int level, String startDate, String endDate, String rz);

	public PsForm getFormDetail(String billNo);

	public String deleteForm(String billNo);

	public String saveForm(PsForm form, boolean isModify);

	public String bankForm(List<String> bills);

	public String getLastPsBillNo(String orgCode);
}
